package com.blank.shop.dubbo.schedul;

import com.blank.shop.dubbo.service.RestCallService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * <br/>Date 2021/9/1
 * <br/>Time 18:10:00
 *
 * @author _blank
 */
@Component
public class SchedulingBean extends RestCallService {

    @Scheduled(fixedDelay = 10 * 1000L)
    public void onScheduled() {
        callAll();
    }

}
